import React from "react";
import BarChart from "./components/BarChart"
// import TabsExample from "./components/TabsExample";
import LineChart from "./components/LineChart";
import PieChart from "./components/PieChart";
import { Tabs } from 'antd';

const { TabPane } = Tabs;

const newPage=() => {
    return (
        <>
        <h2>newPage页面</h2>
         <Tabs defaultActiveKey="1">
              <TabPane tab="柱状图" key="1">
                {/* 柱状图 */}
              <BarChart />
              </TabPane>
              <TabPane tab="折线图" key="2">
                {/* 折线图 */}
               <LineChart />
              </TabPane>
              <TabPane tab="饼图" key="3">
                {/* 饼图 */}
                <PieChart />
              </TabPane>
            </Tabs>
       
        </>
    )
}

export default newPage;